package com.Interface.dao;

import java.util.List;
import java.util.Map;

import com.Interface.entity.TopicMarkInfo;

public interface TopicMarkInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TopicMarkInfo record);

    int insertSelective(TopicMarkInfo record);

    TopicMarkInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TopicMarkInfo record);

    int updateByPrimaryKey(TopicMarkInfo record);
    
    List<TopicMarkInfo> selectUserMarkByTopicAndType(Map<String, Object> param);
    
    List<Map<String, Object>> selectComment(Map<String, Object> param);
    
    Map<String, Object> getMarkTopicInfo(TopicMarkInfo topicMarkInfo);//获取评论话题的一些基本信息
    
    int updateTopicCommentThumbsCnt(int id);//评论点赞累计加1
    
    List<Map<String, Object>> getUserCommentbyUserId(Map<String, Object> param);
    
    int deleteByCollection(Map<String, Object> param);
    
    int reduceTopicCommentThumbsCnt(int id);//评论点赞累计加1
    
    int deleteTopicThumbs(Map<String, Object> param);
    
    int deleteCommentThumbs(Map<String, Object> param);
    
    int deleteTopicMark(int topic_id);//评论点赞累计加1
    
    
    
}